import App from './App'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'


import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

import navBack from './components/navBack/navBack.vue'
Vue.component('navBack', navBack)

import messageList from './components/messageList/messageList.vue'
Vue.component('messageList', messageList)
import Loading from './components/loading/loading.vue'
Vue.component('Loading', Loading)





import {
	websocetObj
} from './util/ws.js'
Vue.prototype.$ws = websocetObj


import {
	myRequest,
	BASE_URL
} from './util/request.js';
Vue.prototype.$baseURL = BASE_URL;
Vue.prototype.$myRequest = myRequest;

import { uploadFiles } from './util/api.js';
Vue.prototype.$uploadFiles = uploadFiles;

import store from './store'
const app = new Vue({
	...App,
	store
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
